package com.qf.entity;

import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
public class R<T> {

    //响应码
    private Integer code = CODE.SUCCESS;
    //响应信息
    private String msg;
    //实际数据内容
    private T data;

    /**
     * 常见响应码
     */
    public static interface CODE{

        int SUCCESS = 200;
        int ERROR = 500;
        int MUST_LOGIN = 600;
    }

}
